package cn.itcast.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//使用注解的方式创建对象
@Component(value="AnnotationBean")
public class AnnotationBean {
	
	@Value("张三")
	private String name;
	
	public void run() {
		System.out.println("AnnotationBean..."+name);
	}

}
